package com.google.shop.product.wxlogin.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import java.util.Date;
import java.util.Map;
//import org.apache.commons.configuration.tree.DefaultExpressionEngine;

@XStreamAlias("xml")
/* loaded from: app.jar:BOOT-INF/classes/com/google/shop/product/wxlogin/entity/TextMessage.class */
public class TextMessage extends BaseMessage {
    @XStreamAlias("Content")
    private String content;

    public void setContent(String content) {
        this.content = content;
    }

    @Override // com.google.shop.product.wxlogin.entity.BaseMessage
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof TextMessage)) {
            return false;
        }
        TextMessage other = (TextMessage) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$content = getContent();
        Object other$content = other.getContent();
        return this$content == null ? other$content == null : this$content.equals(other$content);
    }

    @Override // com.google.shop.product.wxlogin.entity.BaseMessage
    protected boolean canEqual(Object other) {
        return other instanceof TextMessage;
    }

    @Override // com.google.shop.product.wxlogin.entity.BaseMessage
    public int hashCode() {
        Object $content = getContent();
        return (1 * 59) + ($content == null ? 43 : $content.hashCode());
    }

//    @Override // com.google.shop.product.wxlogin.entity.BaseMessage
//    public String toString() {
//        return "TextMessage(content=" + getContent() + DefaultExpressionEngine.DEFAULT_INDEX_END;
//    }

    public String getContent() {
        return this.content;
    }

    public TextMessage(Map map, String message) {
        this.createTime = (new Date().getTime() / 1000) + "";
        this.fromUserName = map.get("ToUserName").toString();
        this.toUserName = map.get("FromUserName").toString();
        this.msgType = map.get("MsgType").toString();
        this.content = message;
    }
}
